.class public Lcom/waiqin365/lightapp/chexiao/b/a/bc;
.super Lcom/waiqin365/lightapp/chexiao/b/d;


# instance fields
.field public b:Ljava/lang/String;

.field public c:Ljava/lang/String;

.field public d:I

.field public e:Ljava/util/List;


# direct methods
.method public constructor <init>()V
    .locals 1

    const/16 v0, 0x6d

    invoke-direct {p0, v0}, Lcom/waiqin365/lightapp/chexiao/b/d;-><init>(I)V

    return-void
.end method


# virtual methods
.method public a(Ljava/lang/String;)Z
    .locals 14

    const/4 v0, 0x1

    const/4 v1, 0x0

    :try_start_0
    new-instance v6, Lorg/json/JSONObject;

    invoke-direct {v6, p1}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    const-string/jumbo v2, "code"

    invoke-virtual {v6, v2}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_0

    const-string/jumbo v2, "code"

    invoke-virtual {v6, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    iput-object v2, p0, Lcom/waiqin365/lightapp/chexiao/b/a/bc;->b:Ljava/lang/String;

    const-string/jumbo v2, "1"

    iget-object v3, p0, Lcom/waiqin365/lightapp/chexiao/b/a/bc;->b:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_2

    const-string/jumbo v2, "totalPage"

    invoke-virtual {v6, v2}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_3

    const-string/jumbo v2, "totalPage"

    invoke-virtual {v6, v2}, Lorg/json/JSONObject;->getInt(Ljava/lang/String;)I

    move-result v2

    :goto_0
    iput v2, p0, Lcom/waiqin365/lightapp/chexiao/b/a/bc;->d:I

    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    iput-object v2, p0, Lcom/waiqin365/lightapp/chexiao/b/a/bc;->e:Ljava/util/List;

    const-string/jumbo v2, "datas"

    invoke-virtual {v6, v2}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_1

    const-string/jumbo v2, "datas"

    invoke-virtual {v6, v2}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v7

    if-eqz v7, :cond_1

    move v5, v1

    :goto_1
    invoke-virtual {v7}, Lorg/json/JSONArray;->length()I

    move-result v2

    if-ge v5, v2, :cond_1

    invoke-virtual {v7, v5}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v3

    new-instance v8, Lcom/waiqin365/lightapp/chexiao/c/j;

    invoke-direct {v8}, Lcom/waiqin365/lightapp/chexiao/c/j;-><init>()V

    const-string/jumbo v2, "car_no"

    invoke-virtual {v3, v2}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_4

    const-string/jumbo v2, "car_no"

    invoke-virtual {v3, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    :goto_2
    iput-object v2, v8, Lcom/waiqin365/lightapp/chexiao/c/j;->a:Ljava/lang/String;

    const-string/jumbo v2, "code"

    invoke-virtual {v3, v2}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_5

    const-string/jumbo v2, "code"

    invoke-virtual {v3, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    :goto_3
    iput-object v2, v8, Lcom/waiqin365/lightapp/chexiao/c/j;->b:Ljava/lang/String;

    const-string/jumbo v2, "back_store_house"

    invoke-virtual {v3, v2}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_6

    const-string/jumbo v2, "back_store_house"

    invoke-virtual {v3, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    :goto_4
    iput-object v2, v8, Lcom/waiqin365/lightapp/chexiao/c/j;->n:Ljava/lang/String;

    const-string/jumbo v2, "is_enable"

    invoke-virtual {v3, v2}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_7

    const-string/jumbo v2, "is_enable"

    invoke-virtual {v3, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    const-string/jumbo v4, "0"

    invoke-virtual {v2, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_7

    move v2, v0

    :goto_5
    iput-boolean v2, v8, Lcom/waiqin365/lightapp/chexiao/c/j;->d:Z

    const-string/jumbo v2, "confirm_status"

    invoke-virtual {v3, v2}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_8

    const-string/jumbo v2, "confirm_status"

    invoke-virtual {v3, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    :goto_6
    iput-object v2, v8, Lcom/waiqin365/lightapp/chexiao/c/j;->c:Ljava/lang/String;

    const-string/jumbo v2, "cur_date_time"

    invoke-virtual {v6, v2}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_9

    const-string/jumbo v2, "cur_date_time"

    invoke-virtual {v6, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    :goto_7
    iput-object v2, v8, Lcom/waiqin365/lightapp/chexiao/c/j;->l:Ljava/lang/String;

    const-string/jumbo v2, "submit_date"

    invoke-virtual {v3, v2}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_a

    const-string/jumbo v2, "submit_date"

    invoke-virtual {v3, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    :goto_8
    iput-object v2, v8, Lcom/waiqin365/lightapp/chexiao/c/j;->e:Ljava/lang/String;

    const-string/jumbo v2, "submit_name"

    invoke-virtual {v3, v2}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_b

    const-string/jumbo v2, "submit_name"

    invoke-virtual {v3, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    :goto_9
    iput-object v2, v8, Lcom/waiqin365/lightapp/chexiao/c/j;->f:Ljava/lang/String;

    const-string/jumbo v2, "submit_time"

    invoke-virtual {v3, v2}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_c

    const-string/jumbo v2, "submit_time"

    invoke-virtual {v3, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    :goto_a
    iput-object v2, v8, Lcom/waiqin365/lightapp/chexiao/c/j;->h:Ljava/lang/String;

    const-string/jumbo v2, "confirm_name"

    invoke-virtual {v3, v2}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_d

    const-string/jumbo v2, "confirm_name"

    invoke-virtual {v3, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    :goto_b
    iput-object v2, v8, Lcom/waiqin365/lightapp/chexiao/c/j;->j:Ljava/lang/String;

    const-string/jumbo v2, "confirm_time"

    invoke-virtual {v3, v2}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_e

    const-string/jumbo v2, "confirm_time"

    invoke-virtual {v3, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    :goto_c
    iput-object v2, v8, Lcom/waiqin365/lightapp/chexiao/c/j;->k:Ljava/lang/String;

    const-string/jumbo v2, "prods"

    invoke-virtual {v3, v2}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_f

    const-string/jumbo v2, "prods"

    invoke-virtual {v3, v2}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v2

    move-object v4, v2

    :goto_d
    if-eqz v4, :cond_19

    invoke-virtual {v4}, Lorg/json/JSONArray;->length()I

    move-result v2

    if-lez v2, :cond_19

    iget-object v2, v8, Lcom/waiqin365/lightapp/chexiao/c/j;->m:Ljava/util/List;

    invoke-interface {v2}, Ljava/util/List;->clear()V

    move v3, v1

    :goto_e
    invoke-virtual {v4}, Lorg/json/JSONArray;->length()I

    move-result v2

    if-ge v3, v2, :cond_19

    invoke-virtual {v4, v3}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v9

    new-instance v10, Lcom/waiqin365/lightapp/product/d/d;

    invoke-direct {v10}, Lcom/waiqin365/lightapp/product/d/d;-><init>()V

    const-string/jumbo v2, "name"

    invoke-virtual {v9, v2}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_10

    const-string/jumbo v2, "name"

    invoke-virtual {v9, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    :goto_f
    iput-object v2, v10, Lcom/waiqin365/lightapp/product/d/d;->a:Ljava/lang/String;

    const-string/jumbo v2, "brand"

    invoke-virtual {v9, v2}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_11

    const-string/jumbo v2, "brand"

    invoke-virtual {v9, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    :goto_10
    iput-object v2, v10, Lcom/waiqin365/lightapp/product/d/d;->j:Ljava/lang/String;

    const-string/jumbo v2, "spec"

    invoke-virtual {v9, v2}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_12

    const-string/jumbo v2, "spec"

    invoke-virtual {v9, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    :goto_11
    iput-object v2, v10, Lcom/waiqin365/lightapp/product/d/d;->b:Ljava/lang/String;

    const-string/jumbo v2, "name_spec"

    invoke-virtual {v9, v2}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_13

    const-string/jumbo v2, "name_spec"

    invoke-virtual {v9, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    :goto_12
    iput-object v2, v10, Lcom/waiqin365/lightapp/product/d/d;->c:Ljava/lang/String;

    const-string/jumbo v2, "prop_values"

    invoke-virtual {v9, v2}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_14

    const-string/jumbo v2, "prop_values"

    invoke-virtual {v9, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    :goto_13
    iput-object v2, v10, Lcom/waiqin365/lightapp/product/d/d;->d:Ljava/lang/String;

    const-string/jumbo v2, "num_unit"

    invoke-virtual {v9, v2}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_15

    const-string/jumbo v2, "num_unit"

    invoke-virtual {v9, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    :goto_14
    iput-object v2, v10, Lcom/waiqin365/lightapp/product/d/d;->f:Ljava/lang/String;

    const-string/jumbo v2, "num"

    invoke-virtual {v9, v2}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_16

    const-string/jumbo v2, "num"

    invoke-virtual {v9, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    :goto_15
    const-wide/16 v12, 0x0

    invoke-static {v2, v12, v13}, Lcom/fiberhome/gaea/client/d/k;->a(Ljava/lang/String;D)D

    move-result-wide v12

    invoke-static {v12, v13}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double;

    move-result-object v2

    invoke-virtual {v10, v2}, Lcom/waiqin365/lightapp/product/d/d;->b(Ljava/lang/Double;)V

    const-string/jumbo v2, "input_unit_name"

    invoke-virtual {v9, v2}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_17

    const-string/jumbo v2, "input_unit_name"

    invoke-virtual {v9, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    :goto_16
    invoke-virtual {v10, v2}, Lcom/waiqin365/lightapp/product/d/d;->f(Ljava/lang/String;)V

    const-string/jumbo v2, "input_unit"

    invoke-virtual {v9, v2}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_18

    const-string/jumbo v2, "input_unit"

    invoke-virtual {v9, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    :goto_17
    invoke-virtual {v10, v2}, Lcom/waiqin365/lightapp/product/d/d;->e(Ljava/lang/String;)V

    iget-object v2, v8, Lcom/waiqin365/lightapp/chexiao/c/j;->m:Ljava/util/List;

    invoke-interface {v2, v10}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    add-int/lit8 v2, v3, 0x1

    move v3, v2

    goto/16 :goto_e

    :cond_0
    move v0, v1

    :cond_1
    :goto_18
    return v0

    :cond_2
    const-string/jumbo v1, "message"

    invoke-virtual {v6, v1}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v1

    if-nez v1, :cond_1

    const-string/jumbo v1, "message"

    invoke-virtual {v6, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/waiqin365/lightapp/chexiao/b/a/bc;->c:Ljava/lang/String;
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_18

    :catch_0
    move-exception v1

    invoke-virtual {v1}, Lorg/json/JSONException;->printStackTrace()V

    goto :goto_18

    :cond_3
    move v2, v1

    goto/16 :goto_0

    :cond_4
    :try_start_1
    const-string/jumbo v2, ""

    goto/16 :goto_2

    :cond_5
    const-string/jumbo v2, ""

    goto/16 :goto_3

    :cond_6
    const-string/jumbo v2, ""

    goto/16 :goto_4

    :cond_7
    move v2, v1

    goto/16 :goto_5

    :cond_8
    const-string/jumbo v2, ""

    goto/16 :goto_6

    :cond_9
    const-string/jumbo v2, ""

    goto/16 :goto_7

    :cond_a
    const-string/jumbo v2, ""

    goto/16 :goto_8

    :cond_b
    const-string/jumbo v2, ""

    goto/16 :goto_9

    :cond_c
    const-string/jumbo v2, ""

    goto/16 :goto_a

    :cond_d
    const-string/jumbo v2, ""

    goto/16 :goto_b

    :cond_e
    const-string/jumbo v2, ""

    goto/16 :goto_c

    :cond_f
    new-instance v2, Lorg/json/JSONArray;

    invoke-direct {v2}, Lorg/json/JSONArray;-><init>()V

    move-object v4, v2

    goto/16 :goto_d

    :cond_10
    const-string/jumbo v2, ""

    goto/16 :goto_f

    :cond_11
    const-string/jumbo v2, ""

    goto/16 :goto_10

    :cond_12
    const-string/jumbo v2, ""

    goto/16 :goto_11

    :cond_13
    const-string/jumbo v2, ""

    goto/16 :goto_12

    :cond_14
    const-string/jumbo v2, ""

    goto/16 :goto_13

    :cond_15
    const-string/jumbo v2, ""

    goto/16 :goto_14

    :cond_16
    const-string/jumbo v2, ""

    goto/16 :goto_15

    :cond_17
    const-string/jumbo v2, ""

    goto/16 :goto_16

    :cond_18
    const-string/jumbo v2, ""

    goto/16 :goto_17

    :cond_19
    iget-object v2, p0, Lcom/waiqin365/lightapp/chexiao/b/a/bc;->e:Ljava/util/List;

    invoke-interface {v2, v8}, Ljava/util/List;->add(Ljava/lang/Object;)Z
    :try_end_1
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_0

    add-int/lit8 v2, v5, 0x1

    move v5, v2

    goto/16 :goto_1
.end method
